Auto merge of #4303 - bluetech:doc-env-cfg, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 20 Jul 2017 17:06:30 +0000 (17:06 +0000)
committerbors <bors@rust-lang.org>
Thu, 20 Jul 2017 17:06:30 +0000 (17:06 +0000)
commit46bb38aa29bff35bc37a978d38b3840cb37b7532
tree92624bed1ae6aa754895b576414ce5f2411e5b9c
parenta65dbb0357d48c9b2308765554eec624064c1751
parent4c20cbcfc1dd7c0fb22d2b75cb459242f8b2cf18
Auto merge of #4303 - bluetech:doc-env-cfg, r=alexcrichton

Document the CARGO_CFG_* environment variables - fixes #4302

In order to keep the paragraph brief, I have omitted:

- examples of actual variable names - though adding those might help google.
- mention of `rustc --print cfg` - I think the link to the reference is enough.
- reference to the [RFC](https://github.com/rust-lang/rfcs/blob/master/text/1721-crt-static.md#lowering-cfg-values-to-cargo-build-script-environment-variables) - I don't think it's needed.